package com.demo.proxy;
public class StaticProxyTest {

	public static void main(String[] args) throws Exception {
		TicketImpl ticketImpl = new TicketImpl();	//要代理的目标
		
		Thread.sleep(10000);
		
		TicketImplProxy staticProxy = new TicketImplProxy(ticketImpl);
		staticProxy.ticket();
	}
}